package com.edu.eduservice.client;

import com.edu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(name = "service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {
    /**
     * 根据id删除视频
     * @param videoId
     * @return
     */
    @DeleteMapping("/eduvod/video/delVideo/{videoId}")
    R delVideo(@PathVariable("videoId") String videoId);


    /**
     * 批量删除视频
     * @param videoIdList
     * @return
     */
    @DeleteMapping("/eduvod/video/delVideoList")
    R delVideoList(@RequestParam("videoIdList") List<String> videoIdList);
}
